<?php
/**
 * Created by PhpStorm.
 * User: kcj
 * Date: 2017/6/4
 * Time: 20:35
 */
namespace app\index\controller;

use think\Controller;

class Feedback extends Controller
{
    protected function _initialize()
    {
        header("Access-Control-Allow-Origin: *");
    }

    public function  feedback($uid)
    {
        $title = $_POST['title'];
        $content = $_POST['content'];
        $data['uid']=$uid;
        $data['title']=$title;
        $data['content']=$content;
        $data['ftime']=date("Y-m-d H:i:s", time());
        db('feedback')->insert($data);
    }

}